package top.lingkang.securityoauth2.server.auth.impl;

import top.lingkang.securityoauth2.server.auth.TokenGenerate;

import javax.servlet.http.HttpServletRequest;
import java.util.UUID;

/**
 * @author lingkang
 * Created by 2022/7/8
 */
public class DefaultTokenGenerate implements TokenGenerate {
    @Override
    public String token(HttpServletRequest request) {
        return UUID.randomUUID().toString();
    }

    @Override
    public String refreshToken(HttpServletRequest request) {
        return UUID.randomUUID().toString();
    }
}
